package com.hotel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 职员工资实体类
 * @author by LuJinRong
 * @date 2021/7/23。
 * @time 22:35。
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true) //链式加载
@TableName("worker_salaries")
public class WorkerSalaries {
    @TableId(type = IdType.AUTO)//主键自增
    private Integer workerId; //员工编号
    @TableField("worker_name")
    private String workerName; //员工姓名
    @TableField("work_days")
    private String workerDays; //工作天数
    @TableField("deduct_money")
    private Integer deductMoney; //扣款
    @TableField("travel_allowance")
    private Integer travelAllowance; //出行补助
    @TableField("base_pay")
    private Integer basePay; //底薪
    private Integer subsidy; //补助
    private Boolean status; //状态
    @TableField("monthly_pay")
    //private Integer monthlyPay = subsidy + basePay + travelAllowance - deductMoney;
    private Integer monthlyPay; //月薪
}
